
// #ifndef VUE3
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

import store from 'store'
Vue.prototype.$store = store

App.mpType = 'app'

Vue.prototype.navigateTo = (options) =>{
	if(!store.state.user.loginStatus){
		uni.showToast({
			title:"请登陆",
			icon:'none'
		})
		return uni.navigateTo({
			url:"/pages/login/login"
		})
	}
	uni.navigateTo(options)
}
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif